Note: This statement is named Get Stopwatch Milliseconds in the Add Statement dialog box.
Returns the elapsed stopwatch time in milliseconds. The return value is useful for comparisons and in Do...Loop While statements. For example, you can report on how long a web page takes to load from a server.
To control the stopwatch, use the StartStopwatch and StopStopwatch statements.
Syntax
GetStopwatchElapsedMilliseconds()
Return value
| Value | Description |
|---|---|
| Value | Elapsed stopwatch time in milliseconds. |
Example
StartStopwatch()
Window("Report a Bug").EditBox("editboxUsername").SetText("Guest")
Window("Report a Bug").EditBox("editboxPassword").SetText("SoloBug")
Window("Report a Bug").Button("buttonLogin").Click()
StopStopwatch()
elapsedTime = GetStopwatchElapsedMilliseconds()
PrintLn("Login time in milliseconds: " + elapsedTime)